package com.alibaba.cloud.utils;

/**
 * The Class Constants.
 *
 * @ClassName: Constants
 * @Description:常量池
 * @author: zhb1316783262@163.com
 * @date: 2018年11月26日下午6:17:27
 */
public final class Constants {

	/**
	 * The Interface RedisCacheExtime.
	 */
	public interface RedisCacheExtime {

		/** The redis session extime. */
		int REDIS_SESSION_EXTIME = 60 * 30;// 30分钟

		/** The goods list. */
		int GOODS_LIST = 60;// 1分钟

		/** The goods info. */
		int GOODS_INFO = 60;// 1分钟
	}

	/** 用户ID. */
	public static String USER_ID = "login_user_id_";

	/** 登录的用户名. */
	public static String USER_NAME = "login_user_name_";

	/** The Constant VALIDATE_CODE_PREFIX. */
	public static final String VALIDATE_CODE_PREFIX = "zhb_validate_code_";

	/** The Constant VALIDATE_CODE_EXPIRE. */
	public static final Integer VALIDATE_CODE_EXPIRE = 150;

	/** 默认的处理验证码的url前缀. */
	public static final String DEFAULT_VALIDATE_CODE_URL_PREFIX = "/code";

	/** 当请求需要身份验证时跳转URL. */
	public static final String DEFAULT_LOGIN_URL = "/login";

	/** 默认的用户名密码登录请求处理url. */
	public static final String DEFAULT_LOGIN_FORM = "/form";

	/** 默认的手机验证码登录请求处理url--跳转到手机登录页面. */
	public static final String DEFAULT_LOGIN_MOBILE_PAGE = "/mobile";

	/** 默认的手机验证码登录请求处理url. */
	public static final String DEFAULT_MOBILE_PAGE = "/mobilePage";

	/** 默认的用户注册请求处理url. */
	public static final String DEFAULT_REGISTER_URL = "/register";

	/** weixin appID. */
	public static final String DEFAULT_SOCIAL_WEIXIN_APP_ID = "wxfd6965ab1fc6adb2";

	/** weixin appsECRET. */
	public static final String DEFAULT_SOCIAL_WEIXIN_APP_SECRET = "66bb4566de776ac699ec1dbed0cc3dd1";

	/** qq appID. */
	public static final String DEFAULT_SOCIAL_QQ_APP_ID = "101448999";

	/** qq appsECRET. */
	public static final String DEFAULT_SOCIAL_QQ_APP_SECRET = "1d958787a87559bad371c0a9e26eef61";

	/** weibo appID. */
	public static final String DEFAULT_SOCIAL_WEIBO_APP_ID = "491608476";

	/** weibo appsECRET. */
	public static final String DEFAULT_SOCIAL_WEIBO_APP_SECRET = "b2dd0d4199ddc9d64e75d9dd6007ca82";

	/** 自定义社交social拦截地址 默认/auth (SocialAuthenticationFilter). */
	public static final String DEFAULT_SOCIAL_PROCESS_URL = "/login";

	/** 提供商的ID. */
	public static final String DEFAULT_SOCIAL_QQ_PROVIDER_ID = "qq";

	/** 提供商的ID. */
	public static final String DEFAULT_SOCIAL_WEIXIN_PROVIDER_ID = "weixin";

	/** 默认的主页测. */
	public static final String DEFAULT_SIGNUP_URL = "/register";

	/** 验证图片验证码时，http请求中默认的携带图片验证码信息的参数的名称. */
	public static final String DEFAULT_PARAMETER_NAME_CODE_IMAGE = "imageCode";

	/** 验证短信验证码时，http请求中默认的携带短信验证码信息的参数的名称. */
	public static final String DEFAULT_PARAMETER_NAME_CODE_SMS = "smsCode";

	/** 发送短信验证码 或 验证短信验证码时，传递手机号的参数的名称. */
	public static final String DEFAULT_PARAMETER_NAME_MOBILE = "mobile";

	/** session失效默认的跳转地址. */
	public static final String DEFAULT_SESSION_INVALID_URL = "/merryyou-session-invalid.html";

	public static final String BPMN_PATH = "";

	public static final String SSO_SESSIONID = null;

}
